#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{
    int n, arr[1000] = { 0 }, temp;
    scanf("%d", &n);
    for (int i = 0; i < n; i++) {
        scanf("%d", &arr[i]);
    }
    for (int i = 0; i < n; i++) {
        for (int j = i + 1; j < n; j++) {
            if (arr[i] > arr[j])
            {
                temp = arr[j];
                arr[j] = arr[i];
                arr[i] = temp;
            }
            else if (arr[i] == arr[j]) {
                arr[j] = 0;
            }
        }
        if (arr[i] != 0)
            printf("%d ", arr[i]);
    }
    return 0;
}

